#include"Punct_stream.h"

int main(int argc,char *argv[])
{
  Punct_stream ps{cin};
  ps.whitespace(",.;:'\"/?!@#$%^&*<>");
  ps.case_sensitive(false);

  cout<<"please enter words"<<endl;
  vector<string> vs;
  for(string temp;ps>>temp;)
    vs.push_back(temp);

  sort(vs.begin(),vs.end());
  for(int i=0;i<vs.size();i++)  //output non-repeating words in the order of dictionary
    if(i==0||vs[i]!=vs[i-1])
      cout<<vs[i]<<endl;
  return 0;
}

